import request from '@/utils/request'

// 查询清考列表
export function listExamFinal(query) {
  return request({
    url: '/exam/examFinal/list',
    method: 'get',
    params: query
  })
}

// 查询清考详细
export function getExamFinal(id) {
  return request({
    url: '/exam/examFinal/' + id,
    method: 'get'
  })
}

// 新增清考
export function addExamFinal(data) {
  return request({
    url: '/exam/examFinal',
    method: 'post',
    data: data
  })
}

// 生成清考名单
export function genExamFinal(data) {
  return request({
    url: '/exam/examFinal/gen',
    method: 'get'
  })
}

// 修改清考
export function updateExamFinal(data) {
  return request({
    url: '/exam/examFinal',
    method: 'put',
    data: data
  })
}

// 删除清考
export function delExamFinal(id) {
  return request({
    url: '/exam/examFinal/' + id,
    method: 'delete'
  })
}

// 导出清考
export function exportExamFinal(query) {
  return request({
    url: '/exam/examFinal/export',
    method: 'get',
    params: query
  })
}


// 下载导入模板
export function importTemplate() {
  return request({
    url: '/exam/examFinal/importTemplate',
    method: 'get'
  })
}
